package com.szqhyxj.youxiangju.biz.card.addCard;

import android.content.Context;
import android.content.Intent;

import com.szqhyxj.youxiangju.BasePresenter;
import com.szqhyxj.youxiangju.PromptView;

import java.io.File;
import java.io.IOException;

/**
 * XiaoPanYu
 * on 2018/10/31
 */
public interface BinCardContarct{

    interface View extends PromptView{
        void showIssuingBank(String[] issuingBanks);
        void showCardNo(String issuingBank);
        void showDueDate(String dueDate);
        void showAccountantBillDate(String accountantBillDate);
        void showPhotograph(File file);
        void showPhoneCode();
        void navToGalleryFor();
        void navToTakePhoto(File file);
        void navErr(String err);
        void navSuccess(String success);
        void previewFace(File file);
    }

    interface Presenter extends BasePresenter{

        void init();
        void present();
        void setIssuingBank(int i);
        void getIssuingBank();
        void getPhoneCode();
        void bankCreditCard();
        void ocrPhotograph(File file);
        void upPhotograph(File file);
        void idcardFromGallery(Context mContext, Intent intent);
        void takePhotoFor(Context context) throws IOException;
        void selectFromGalleryFor();
        void setDueDate(String dueDate);
        void setAccountantBillDate(String accountantBillDate);

        void setBtCode(String btCode);
        void setBtName(String btName);
        void setUsername(String username);
        void setBankCardNo(String bankCardNo);
        void setCardPhone(String cardPhone);
        void setBankCardPic(String bankCardPic);
        void setCvn(String cvn);
        void setExpiryDate(String expiryDate);
        void setBillingDate(String billingDate);
        void setFixedAmount(String fixedAmount);
        void setSendValidCode(String sendValidCode);
        void setTempFile(File file);
    }
}
